/**
 * 
 */
package org.karen.droid.logviewtools.application;

import java.io.File;
import java.util.List;

import org.karen.droid.logviewtools.control.FileHelper;
import org.karen.droid.logviewtools.module.LogBean;

import android.app.Application;
import android.os.Environment;

/**
 * @author Karen [Email:keyu404@gmail.com]
 * 
 */
public class LGApplication extends Application {

    private static final String TAG = "LGApplication";
    private FileHelper mFileHelper = null;

    /*
     * (non-Javadoc)
     * @see android.app.Application#onCreate()
     */
    @Override
    public void onCreate() {
        super.onCreate();
        initData();

    }

    public void initData() {
        mFileHelper = FileHelper.getInstance();

    }

    public File getExSDCardRoot() {
        return mFileHelper.getExSDCardRoot();
    }

    public File getSDCardRoot() {
        return mFileHelper.getSDCardRoot();
    }

    public List<File> getFils(File mFile) {
        return mFileHelper.getFiles(mFile);
    }

    public List<LogBean> getLogData(String filePath) {
        return mFileHelper.getLogData(filePath, 0, 1000);
    }

}
